<template>
  <div class="school">
    <h2 @click="showName">学校名称:{{ name }}</h2>
    <h2>学校地址:{{ address }}</h2>
  </div>
</template>

<script>
// 引入一个混合
import {mixin} from '../mixin.js'
export default {
  name: "SchoolVue",
  data() {
    return {
      name: "培立优",
      address: "三箭银苑",
    };
  },
  mixins:[mixin]
};
</script>

<style>
.school {
  background-color: gray;
}
</style>